home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / dev / cross / ava-0.2.5.lha / ava-0.2.5 / examples / mirror.s < prev    next >
Encoding:
Text File  |  1999-03-23  |  419 b   |  25 lines

  1. /*
  2.   mirror.s
  3.  
  4.   An example of mirror segment.
  5.   Segment eram.mirror is copied to the flash.mirror and
  6.   if and only if reference __mirror is used, the flash.mirror
  7.   is present.
  8.  
  9.   Uros Platise (c) 1999
  10. */
  11.  
  12. #arch AT90S8515
  13. #include "avr.inc"    
  14.  
  15.     seg abs=0 size=10 removable flash.mirror
  16. public __mirror:
  17.  
  18.     seg mirror=flash.mirror eram.mirror
  19.  
  20.     seg eram.mirror
  21.     dc.b "alphabeta"
  22.  
  23.     seg flash.code
  24.     ldi r16,low(__mirror)
  25.